.app-container {
  height: 100%;
  min-height: auto;
}

.tip-dialog {
  .el-dialog__header {
    border: none !important;
  }

  .el-dialog__body {
    padding: 8px 34px 40px 50px !important;
  }
}

.ellipsis {
  overflow: hidden; //超出隐藏
  white-space: nowrap; //不折行
  text-overflow: ellipsis;
  display: block;
}
.mu-ellipsis {
  /* 允许单词内换行 */
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 开启盒子的弹性布局 */
  display: -webkit-box;
  /* 设置子元素从上向下垂直排列 */
  -webkit-box-orient: vertical;
}

.query-form {
  width: 100%;
  display: flex;
  background: #f9fbff;
  padding: 16px;
  padding-bottom: 0px;

  .query-form-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .query-form-options {
    flex: 8;

    .el-form {
      display: flex !important;
      flex-wrap: wrap !important;

      .el-form-item {
        .el-form-item__content {
          .el-form-item {
            width: 100%;
            margin-right: 0;

            .el-form-item__content {
              width: 100%;
            }
          }

          .el-date-editor {
            width: 100%;
          }

          .el-select {
            width: 100%;
          }

          .el-input-number {
            width: 100%;

            .el-input {
              .el-input__inner {
                text-align: left;
              }
            }
          }
        }
      }
    }
  }

  .query-form-buttons {
    flex: 1;
  }
}

.detail-dialog {
  .el-dialog__body {
    padding: 0px 16px 10px !important;
  }
}

.modify-dialog {
  .el-dialog__body {
    padding: 15px 20px 5px !important;
  }

  .el-form-item {
    padding-left: 70px;
  }
}

.device-detail-form {
  .el-dialog__header {
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    padding: 10px 16px;
    .el-dialog__title {
      font-size: 16px;
      display: inline-block;
      height: 20px;
      line-height: 20px;
    }
    .el-dialog__headerbtn {
      top: 13px;
      right: 16px;
      .el-dialog__close {
        color: #8c8c8c;
      }
    }
  }
  .el-dialog__footer {
    .dialog-footer {
      border: none;
    }
    padding: 8px 16px;
    height: 49px;
  }
  .el-dialog__body {
    padding: 16px;
  }
  .el-form.search-bar-form {
    padding: 0;
  }
  .el-form .el-form-item {
    margin-bottom: 16px;
  }
  .el-descriptions__header {
    padding: 10px 16px;
    // background: #f0f0f0;
    // border: 1px solid #f0f0f0;
    color: #262626;
    font-size: 14px;
    margin-bottom: 0.5em;
    .el-descriptions__title {
      // border-left:3px solid #3366FF;
      padding-left: 8px;
    }
  }
  .el-descriptions--mini,
  .el-descriptions--small {
    font-size: 14px;
  }

  .pagination {
    text-align: center;
  }

  .el-form {
    .el-select {
      width: 100%;
    }
  }
}
.drawer-detail-form {
  .el-descriptions__header {
    padding: 0px 16px;
    color: #262626;
    font-size: 14px;
    margin-bottom: 16px;
    .el-descriptions__title {
      padding-left: 11px;
      position: relative;
      font-size: 14px;
      &::after {
        content: '';
        position: absolute;
        display: inline-block;
        left: 0;
        top: 0;
        height: 16px;
        width: 3px;
        border-radius: 2px;
        background: #3366ff;
      }
    }
  }
  .el-descriptions--mini,
  .el-descriptions--small {
    font-size: 14px;
  }
  .el-descriptions__body {
    padding: 0 16px;
  }
}
.link-hover {
  cursor: pointer;
  &:hover {
    text-decoration: underline;
  }
}
.loading-mask {
  z-index: 4999 !important;
}

.el-drawer {
  .el-drawer__header {
    color: #262626;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    height: 50px;
    line-height: 50px;
    margin-bottom: 24px;
    padding: 0 16px;
    font-weight: 500;
  }
  .el-drawer__close-btn {
    padding: 0;
  }
}
.el-drawer__body {
  padding: 0;

  .el-descriptions-item__label {
    color: #8c8c8c;
  }
  .el-descriptions--small:not(.is-bordered) .el-descriptions-item__cell {
    padding-bottom: 24px;
  }
}

.table-button {
  margin-bottom: 2px;
}
.search-bar-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  .el-form-item {
    .el-input__suffix {
      line-height: 32px;
    }
    .el-select,
    .el-date-editor {
      width: 100%;
    }
    .el-range-editor--medium .el-range-separator {
      line-height: 24px;
    }
    .el-button-dropdown {
      z-index: 10;
    }
  }
}
.search-bar-form-bottom-16 {
  .el-form-item {
    margin-bottom: 16px;
  }
}
$widths: 15 20 25 30 40 50 100;
@each $i in $widths {
  .search-form-#{$i} {
    &.el-form-item,
    .el-form-item {
      width: $i * 1%;
    }
  }
}

a,
p,
input,
div,
button {
  outline: none;

  &:focus,
  &:focus-visible {
    outline: none;
  }
}
